<form action="{:url()}" method="post" data-auto="true" class="layui-form layui-card"  data-table-id="ThumbTable">
    <div class="layui-card-body">
        <div class="layui-form-item">
            <label class="layui-form-label">缩略图</label>
            <div class="layui-input-block">
                <input type="hidden" data-accept-mime="image/*"  required   data-file-type="1" name="thumb" value="{$vo.thumb|default=''}">
                <p class="help-block"><b>必选</b></p>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">链接地址</label>
            <div class="layui-input-block">
                <input name="link_url" value="{$vo.link_url|default=''}" required vali-name="链接地址" placeholder="链接地址" class="layui-input" type="text">
                <p class="help-block"><b>必填</b>，请填写链接地址</p>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label label-required-next">位置</label>
                <div class="layui-input-block">
                <select name='position' class='layui-select' >
                    <option value="1">首页</option>
                </select>
                    <p class="help-block"><b>必选</b></p>
                </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="number" name="sort" required vali-name="排序" placeholder="请输入排序" value="{$vo.sort|default='50'}" class="layui-input" >
                <p class="help-block">
                    <b>必须是数字排序越小越靠前</b>
                </p>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入用户备注" class="layui-textarea" name="remark">{$vo.remark|default=""}</textarea>
            </div>
        </div>
    </div>
    <div class="hr-line-dashed"></div>
    <input type='hidden' value='{$vo.id|default=0}' name='id'>
    <div class="layui-form-item text-center">
        <button data-target-submit class="layui-btn">保存数据</button>
        <button data-target-close class="layui-btn layui-btn-danger layui-layer-close" type="button">取消</button>
    </div>
</form>
<script type="text/javascript">
    require(["jquery"],function ($) {
        $.menu.highlight_subnav("{:url('index')}");
        $('[name=thumb]').uploadOneImage();
    });
</script>
